Tudor Dascalu's profile

Motion Sensors Game

Project outline
The aim of this project is to create a simple game, using the motion sensors of the device. The user has to overlap the sphere on the square.

Project scope
The project enables users to control the sphere using the motion sensors of the device. Every time the sphere goes over the square, the user gains a point. 

Technologies
- HTML
- CSS
- JavaScript

Development
To position the sphere in relation with the motion of the mobile phone I the following checks every 0,025 seconds the position of the device and changes the (x,y) coordinates of the sphere. When the sphere overlaps with the square, an extra point is given to the user and the position of the square changes randomly.
Motion Sensors Game
Published:

Motion Sensors Game

Published: